<?php

namespace App\BO\Distributor\Meta;

class UserDistributorRate
{
    /**
     * @var int
     */
    private $userId;

    /**
     * 比率， 使用时要除以 100
     * @var int
     */
    private $rate;

    /**
     * @return int
     */
    public function getUserId(): int
    {
        return $this->userId;
    }

    /**
     * @param int $userId
     */
    public function setUserId(int $userId): void
    {
        $this->userId = $userId;
    }

    /**
     * @return int
     */
    public function getRate(): int
    {
        return $this->rate;
    }

    /**
     * @param int $rate
     */
    public function setRate(int $rate): void
    {
        $this->rate = $rate;
    }
}
